package com.wky1.wang1.mapper;

import com.wky1.wang1.pojo.Denglu;
import com.wky1.wang1.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.util.List;

@Mapper
public interface StudentMapper {
    //查询
    public List<Student> selectlist();
    //新增
    @Options(keyProperty="id",useGeneratedKeys=true)//获取返回新添加信息的id主键
    public void  set(Student student);
    //修改
    public void update(Student student);
    //批量删除
    public void delete(List<Integer> ids);
    //分页查询
    public  List<Student> sleectall(String name,String num,Integer age );

}
